unsigned int  OneAdder(unsigned int  n)
{
  unsigned int mask = 1;
  while( n & mask )
  {
    n = n^mask;
    mask <<= 1;
  }
  n = n^mask;
  return n;
}
 

int main()
{
  printf("%d", OneAdder(1294967294));
  getchar();
  return 0;
}